package com.yesjpt.serv.impl;

import java.util.LinkedList;
import java.util.List;

import org.springframework.stereotype.Service;

import com.yesjpt.domain.User;
import com.yesjpt.serv.UserServ;
import com.yesjpt.util.L;

@Service
public class UserServImpl extends BaseServImpl implements UserServ {

	@Override
	public User findById(String id) {
		L.info(new Throwable().getStackTrace()[0]);
    	User vo = new User(id, "用户_" + id);
    	return vo;
	}

	@Override
	public List<User> listAll() {
		L.info(new Throwable().getStackTrace()[0]);
		List<User> all = new LinkedList<User>();
		for(int i = 0; i < 10; i++) {
	    	User vo = new User("" + i, "user_" + i);
	    	all.add(vo);
		}
		return all;
	}

}
